/**
 * 
 */
package com.honghao.student.pojo;

import java.util.Date;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * @author honghao.li
 *
 */
@Setter @Getter @ToString
public class Student extends BaseEntity{
    
    private static final long serialVersionUID = 2484193201929760230L;
    
    private int stuId;
    @Length(min=2,max=20)
    private String stuName;
    @Pattern(regexp="w{6,12}")
    private String password;
    @Email
    private String email;
    private Date ctime;
}
